package com.fowo.api.model.sales.outbound.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 销售出库单子表 导入导出辅助模型 */
@Getter
@Setter
public class SalesOutboundProductExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属销售出库单")
  private String parentIdAmazonOrderId;

  @ExcelIgnore
  @ExcelProperty(value = "所属销售出库单")
  private Long parentId;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "数量长度不能超过20")
  @ExcelProperty(value = "数量")
  private Integer count;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "捆绑类型")
  private String bundleType;

  @Size(max = 500, message = "商品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品名")
  private String productName;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String sellerSku;

  @Size(max = 500, message = "商品备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品备注")
  private String customization;

  @Size(max = 500, message = "中文申报名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "中文申报名")
  private String cnName;

  @Size(max = 500, message = "英文申报名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "英文申报名")
  private String enName;

  @Size(max = 500, message = "三方仓品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "三方仓品名")
  private String thirdProductName;

  @Size(max = 50, message = "三方仓SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "三方仓SKU")
  private String thirdProductCode;

  @Size(max = 50, message = "商品单价长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品单价")
  private String unitPrice;

  @Size(max = 50, message = "分摊运费（总计）长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "分摊运费（总计）")
  private String apportionFreight;

  @Size(max = 50, message = "分摊运费（单个）长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "分摊运费（单个）")
  private String apportionFreightSingle;

  @Size(max = 50, message = "库存成本（总计）长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "库存成本（总计）")
  private String stockCost;

  @Size(max = 50, message = "当期出库成本金额长度不能超过20")
  @NumberFormat("0.00")
  @ExcelProperty(value = "当期出库成本金额")
  private java.math.BigDecimal currentIssueCostAmount;
}
